package com.vallis.asfc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;

import java.sql.Timestamp;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableLogic;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author vallis
 * @since 2020-08-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class JoinExamUser extends Model<JoinExamUser> {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 报考id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    /**
     * 用户id
     */
    private Long userId;
    
    /**
     * 考试id
     */
    private Long examId;
    
    /**
     * 是否删除
     */
    @TableLogic
    private Integer deleted;
    
    /**
     * 用户姓名
     */
    private String userName;
    
    /**
     * 考试名称
     */
    private String examName;
    @TableField(exist = false)
    private String orgName;
    @TableField(exist = false)
    private Integer age;
    /**
     * 用户所属单位
     */
    private Long userOrgId;
    
    /**
     * 创建时间
     */
    private Timestamp createTime;
    
    /**
     * 0不通过1通过
     */
    private Integer confirmState;
    
    
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    
}
